#include<map>
#include<string>
#include<iostream>
using namespace std;


int main()
{
    map<int, string> m1;
    m1.insert(map<int, string>::value_type(77, "zx1"));  // 将键值对打包传递给一个元素传递给s1
    m1.insert(map<int, string>::value_type(772, "zx2"));
    m1.insert(map<int, string>::value_type(773, "zx3"));

    map<int, string>::iterator p;
    for(p = m1.begin(); p != m1.end(); p++)
        cout << p->first << " " << p->second << endl;
    
    p = m1.find(707);
    if(p == m1.end()) cout << "can't find " << endl;
    else cout << p->first << " " << p->second << endl; 


    m1.erase(772);
    for(p = m1.begin(); p != m1.end(); p++)
        cout << p->first << " " << p->second << endl;
    return 0;
}